﻿
using Admin.NET.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotFun.Entity;
/// <summary>
/// 程序运行状态表
/// </summary>
[SugarTable("net_program_status_iot", TableDescription = "程序运行状态")]
public class ProgramStatus:EntityBaseId
{
    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 程序Id
    /// </summary>
    [SugarColumn(ColumnDescription = "程序ID")]
    public long ProgramId { get; set; }

    /// <summary>
    /// 程序状态;0 离线状态 1 正常状态 2 异常状态
    /// </summary>
    [SugarColumn(ColumnDescription = "程序状态", IsNullable = true)]
    public int Status { get; set; }

    /// <summary>
    /// 状态描述;描述异常情况
    /// </summary>
    [SugarColumn(ColumnDescription = "状态描述", IsNullable = true, Length = 255)]
    public string StatusDes { get; set; }

   

    /// <summary>
    /// 内存占用;内存占用大小MB
    /// </summary>
    [SugarColumn(ColumnDescription = "内存占用", IsNullable = true)]
    public int? Ram { get; set; }

  

    /// <summary>
    /// cpu占用;cpu占用大小
    /// </summary>
    [SugarColumn(ColumnDescription = "CPU", IsNullable = true)]
    public int? Cpu { get; set; }

    /// <summary>
    /// 备注;备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, Length = 255)]
    public string Remark { get; set; }

    /// <summary>
    /// 是否启用;0 禁用  1 启用
    /// </summary>
    [SugarColumn(ColumnDescription = "是否启用", IsNullable = true)]
    public int IsEnable { get; set; }

}
